<html>
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
        <title>batch-launcher 0.5.6 - Reference Documentation</title>
        <link rel="stylesheet" href="../../css/ref.css" type="text/css" media="screen" title="Ref" charset="utf-8"/>
    </head>
    <body class="body">
    <h1>batch-war</h1><p class="paragraph"/><h2>Purpose</h2><p class="paragraph"/>Packages your application to be deployed<p class="paragraph"/><h2>Examples</h2><p class="paragraph"/><div class="code"><pre>grails batch&#45;war
grails test batch&#45;war
grails &#45;Dgrails.env=foo batch&#45;war</pre></div><p class="paragraph"/><h2>Description</h2><p class="paragraph"/>Usage:
<div class="code"><pre>grails &#91;environment&#93;&#42; batch&#45;war &#91;arguments&#93;&#42;</pre></div><p class="paragraph"/>The <code>batch-war</code> command will create a directory structure using the application name and version number. By default a deployable application to the production environment will be created, but the environment can be specified using Grails standard convention:<p class="paragraph"/><div class="code"><pre>grails test batch&#45;war
grails dev batch&#45;war
grails prod batch&#45;war</pre></div><p class="paragraph"/>You can also specify a custom environment:<p class="paragraph"/><div class="code"><pre>grails &#45;Dgrails.env=UAT batch&#45;war</pre></div><p class="paragraph"/>Any file inside src/templates/batch will be treated as a shell script file (like .bat or .sh files). Simple content replacement is available for these files.<p class="paragraph"/>Once the directory structure has been created you can copy it and use the shell scripts provided to run your application.<p class="paragraph"/><p class="paragraph"/>
    </body>
</html>
